package com.meng.demo1.stresstesting;

import com.meng.demo1.Component;
import org.openjdk.jol.info.ClassLayout;
import org.openjdk.jol.info.GraphLayout;
import sun.misc.Launcher;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @Author: menglinggang
 * @Date: 2020-10-16
 * @Time: 下午4:57
 */
public class A {

    public static void main(String[] args) {

        B b = new B();
        b.setAaaaaaa("111111111");
        b.setBb("调试湿哒哒的费迪南德上岛咖啡几点开始XVVVVVDHFJDBNDNKDB");
        b.setCc(new Integer(199));
        b.setDd(234L);
        System.out.print(ClassLayout.parseClass(B.class).toPrintable());
        System.out.print(ClassLayout.parseClass(String.class).toPrintable());
        System.out.print(ClassLayout.parseClass(Integer.class).toPrintable());
        System.out.print(GraphLayout.parseInstance(b).toPrintable());
        System.out.print(GraphLayout.parseInstance(b).totalSize());
    }
}
